package com.digiwin.escloud.test.bussiness.test;

import com.digiwin.escloud.test.core.common.AbstractTest;
import com.digiwin.escloud.test.core.common.ITestAssert;
import com.digiwin.escloud.test.core.common.ITestRequest;
import com.digiwin.escloud.test.core.entity.TestCaseEntity;
import io.restassured.http.Header;
import io.restassured.http.Headers;
import io.restassured.response.Response;
import java.util.ArrayList;
import java.util.List;

/**
 * @Author yanggld
 * @Date 2020/5/8-9:36
 */
public class AbstarctTestV2 extends AbstractTest {

	@Override
	protected Response execute(TestCaseEntity entity, ITestRequest iTestRequest, ITestAssert iTestAssert) {
		return super.execute(entity, iTestRequest, iTestAssert);
	}

	@Override
	protected Response execute(TestCaseEntity entity, ITestAssert iTestAssert) {
		return super.execute(entity, iTestAssert);
	}

	@Override
	protected Headers setClassHeaders(){
		List<Header> headerList = new ArrayList<>();
		headerList.add(new Header("token", BizData.USER_TOKEN));
		headerList.add(new Header("version", "2.0"));
		return new Headers(headerList);
	}
}
